package com.jdbc.day01.dao.impl;

import com.jdbc.day01.dao.EasybuyProductMapper;
import com.jdbc.day02.entitys.EasybuyProduct;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.mapper.MapperScannerConfigurer;

public class ProductManager implements EasybuyProductMapper {

    public SqlSessionTemplate getSqlession() {
        return sqlession;
    }

    public void setSqlession(SqlSessionTemplate sqlession) {
        this.sqlession = sqlession;
    }

    private SqlSessionTemplate sqlession;


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(EasybuyProduct record) {
        return 0;
    }

    @Override
    public int insertSelective(EasybuyProduct record) {
        return 0;
    }

    @Override
    public EasybuyProduct selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(EasybuyProduct record) {
        return sqlession.getMapper(EasybuyProductMapper.class).updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(EasybuyProduct record) {
        return 0;
    }
}
